import { defineStore } from "pinia";
//第一个参数模块名称(key),用来区分是哪个模块
export const useDemoStore = defineStore('Cart', {
    state: () => {
        return {
            name: "张三",
            msg: "hello demo"
        }
    },
    getters: {},
    actions: {
        changeName(newName) {
            this.name = newName
        }
    }
})